import React from 'react'
import {useLocation} from 'react-router-dom'
const List:React.FC = () => {
  const {state}=useLocation()
  return (
    <div>
      <div>{state?.text}</div>
      <div>{state?.tel}</div>
      <div>{state?.name}</div>
    </div>
  )
}

export default List